import request from "../utils/request";

// 获取轮播图
export const getBanner = () => {
  return request({
    method: 'get',
    url: '/banner',
    params: {
      type: 1
    }
  })
}

// 获取推荐歌单
export const getRecommendSongList = () => {
  return request({
    method: 'get',
    url: '/personalized',
    params: {
      limit: 6
    }
  })
}

// 获取所有榜单
export const getTopList = () => {
  return request({
    method: 'get',
    url: '/toplist',
  })
}

// 获取热榜排行
export const getHotList = (id:any) => {
  return request({
    method: 'get',
    url: '/playlist/detail',
    params: {
      id: id
    }
  })
}
